<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="index.css">
    <title>开关选择器</title>
</head>

<body>
        <h1>开关选择器</h1>
        <div class="toggle-container">
            <input type="checkbox" name="fast" id="fast" class="toggle">
            <label for="fast" class="label">
                <div class="ball"></div>
            </label>
            <span>fast</span>
        </div>

        <div class="toggle-container">
            <input type="checkbox" name="good" id="good" class="toggle">
            <label for="good" class="label">
                <div class="ball"></div>
            </label>
            <span>good</span>
        </div>

        <div class="toggle-container">
            <input type="checkbox" name="cheap" id="cheap" class="toggle">
            <label for="cheap" class="label">
                <div class="ball"></div>
            </label>
            <span>cheap</span>
        </div>
</body>
<script src="index.js"></script>
</html>